Ensure we don't get duplicate '.' which leads to corruption
authorColin Walters <walters@verbum.org>
Sat, 15 Oct 2011 17:04:50 +0000 (13:04 -0400)
committerColin Walters <walters@verbum.org>
Sat, 15 Oct 2011 17:04:50 +0000 (13:04 -0400)
commit36ba6e54269229d227a97c9207235a009a40c1cb
tree1fbb83f16216efb6f72e4154efaace4a04662378
parent2bd973f645508f112d98fd47820ca668d77c92fa
Ensure we don't get duplicate '.' which leads to corruption

In path_split(), we squash '.' entirely, since it's redundant and if
we don't, we return an extra component which callers would then have
to handle.

In repo, ensure we're never explicitly parsing '.' either (yet).
src/libhacktree/hacktree-repo.c
src/libhtutil/ht-unix-utils.c